-
Notifications
You must be signed in to change notification settings - Fork 4
feat: expose parameter registration interface #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: expose parameter registration interface #190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR exposes a parameter registration interface, allowing for a more flexible approach to adding parameters for cucumber expressions.
- Introduces a new interface, ParameterRegistration, with a pure virtual Add method.
- Updates ParameterRegistry to inherit from ParameterRegistration and replaces AddParameter with Add.
- Exposes the parameter registration interface via Application.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| cucumber_cpp/library/cucumber_expression/ParameterRegistry.hpp | Renamed and added interface for parameter registration; updated method signature to Add. |
| cucumber_cpp/library/cucumber_expression/ParameterRegistry.cpp | Replaced calls to AddParameter with Add, in line with the new interface. |
| cucumber_cpp/library/Application.hpp | Added accessor method for the parameter registration interface. |
| cucumber_cpp/library/Application.cpp | Exposed the parameter registry via the new accessor method. |
Comments suppressed due to low confidence (2)
cucumber_cpp/library/cucumber_expression/ParameterRegistry.hpp:123
- [nitpick] Consider renaming 'ParameterRegistration' to 'IParameterRegistry' to clearly indicate that this struct is an interface.
struct ParameterRegistration
cucumber_cpp/library/Application.hpp:48
- [nitpick] Consider renaming the accessor method to 'GetParameterRegistration()' for improved clarity and consistency with naming conventions for accessor functions.
cucumber_expression::ParameterRegistration& ParameterRegistration();
🦙 MegaLinter status: ❌ ERROR
See detailed report in MegaLinter reports |
b59f31a to
eed61b7
Compare
eed61b7 to
cced049
Compare
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…or better encapsulation
|




No description provided.